<template>
  <div>
    <!-- 面包屑区域 -->
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item>首页</el-breadcrumb-item>
    </el-breadcrumb>
    <el-card>
      <!-- 基本信息 等接口 -->
      <div>
        <h1>基本信息</h1>
        <div class="baseInfoBox">
          <div class="baseInfo-item">
            <img src="" alt="">
            <div>
              <!-- 数量 -->
              <span>5393</span>
              <span class="baseInfo-span-item">商品数量</span>
            </div>
          </div>
          <div class="baseInfo-item">
            <img src="" alt="">
            <div>
              <span>35622</span>
              <span class="baseInfo-span-item">会员数量</span>
            </div>
          </div>
          <div class="baseInfo-item">
            <img src="" alt="">
            <div>
              <span>27115</span>
              <span class="baseInfo-span-item">订单数量</span>
            </div>
          </div>
          <div class="baseInfo-item">
            <img src="" alt="">
            <div>
              <span>836</span>
              <span class="baseInfo-span-item">店铺数量</span>
            </div>
          </div>
        </div>
      </div>
    </el-card>
    <!-- 今日待办 -->
    <el-card class="todayDoBox">
      <div>
        <h1>今日待办</h1>
        <div class="todayDoBoxs">
          <div class="todayDoBox-item">
            <div>
              <!-- 数量 -->
              <span class='colorText'>0</span>
              <span class="todayDoBox-span-item">待审核商品</span>
            </div>
          </div>
          <div class="todayDoBox-item">
            <div>
              <span class='colorText'>1</span>
              <span class="todayDoBox-span-item">待审核店铺</span>
            </div>
          </div>
          <div class="todayDoBox-item">
            <div>
              <span class='colorText'>10</span>
              <span class="todayDoBox-span-item">待审核投诉</span>
            </div>
          </div>
          <div class="todayDoBox-item">
            <div>
              <span class='colorText'>0</span>
              <span class="todayDoBox-span-item">待审核售后</span>
            </div>
          </div>
          <div class="todayDoBox-item">
            <div>
              <span class='colorText'>0</span>
              <span class="todayDoBox-span-item">待审核分销提现</span>
            </div>
          </div>
          <div class="todayDoBox-item">
            <div>
              <span class='colorText'>0</span>
              <span class="todayDoBox-span-item">待审核分账</span>
            </div>
          </div>
        </div>
      </div>
    </el-card>
    <!-- 在线 人数 -->
    <div class="onlineBox">
      <el-card>
        <div class="el-card1">
          <div class="onlineText">当前在线人数</div>
          <div class="iText"><i>18</i></div>
        </div>
      </el-card>
      <el-card class="el-card2">
        <div>流量概况</div>
        <div class="onlineBox-main1">
          <div class="onlineBox-main1-box">
            <p>今日访客数</p>
            <span>13</span>
          </div>
          <div class="onlineBox-main1-box">
            <p>昨日访客数</p>
            <span>122</span>
          </div>
        </div>
        <div class="onlineBox-main1">
          <div class="onlineBox-main1-box">
            <p>今日访客数</p>
            <span>13</span>
          </div>
          <div class="onlineBox-main1-box">
            <p>昨日访客数</p>
            <span>122</span>
          </div>
        </div>
      </el-card>
      <el-card>3</el-card>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MyMain',
  data() {
    return {

    }
  },
}
</script>

<style lang='scss' scoped>
.baseInfoBox {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;

  .baseInfo-item {
    &:nth-child(1) {
      background-color: rgb(254, 126, 126);
    }

    &:nth-child(2) {
      background-color: rgb(255, 178, 127);
    }

    &:nth-child(3) {
      background-color: rgb(152, 185, 227);
    }

    &:nth-child(4) {
      background-color: rgb(144, 151, 212);
    }
  }

  >div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 330px;
    height: 80px;
    background-color: pink;

    >div {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-content: center;
      font-size: 20px;
      font-weight: bold;
      color: #fff;

      .baseInfo-span-item {
        font-size: 12px;
        margin-top: 5px;
      }
    }
  }
}

.todayDoBox {
  margin-top: 20px;

  .todayDoBoxs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
  }

  .todayDoBox-item {
    background-color: rgb(244, 244, 244);
    height: 100px;
    width: 220px;

    >div {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 100%;
    }
  }

  .todayDoBox-span-item {
    margin-top: 5px;
    font-weight: bold;
  }

  .colorText {
    color: #C00000;
    font-weight: bold;
    font-size: 20px;
  }
}

.onlineBox {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;

  .el-card {
    height: 350px;

    &:nth-child(1) {
      flex: 0.5;
    }

    &:nth-child(2) {
      flex: 0.7;
      margin: 0 20px;
    }

    &:nth-child(3) {
      flex: 1;
    }
  }

  .el-card1 {
    position: relative;
    height: 350px;
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .onlineText {
    font-size: 22px;
    font-weight: bold;
  }

  .iText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(255, 170, 113);
    font-size: 50px;
    font-weight: bold;
  }

  .onlineBox-main1 {
    display: flex;
    justify-content: space-between;
    height: 110px;
    // background-color: #C00000;
    box-shadow: 0 0 5px gray;
    margin: 40px 0;
  }

  .onlineBox-main1-box {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

    p {
      font-size: 18px;
      font-weight: bold;
    }

    span {
      color: rgb(255, 170, 113);
      font-size: 20px;
      font-weight: bold;
      margin-top: 20px;
    }
  }
}
</style>